package net.chasing.androidbaseconfig.util;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;

import net.chasing.androidbaseconfig.adapter.BaseFragmentPagerAdapter;

public class FragmentUtils {

    public static Fragment findFragment(FragmentManager fragmentManager, int viewPagerId, int index) {
        return fragmentManager.findFragmentByTag(BaseFragmentPagerAdapter.makeFragmentName(viewPagerId, index));
    }
}
